//
//  AppDelegate.h
//  AOEProject
//
//  Created by techplus on 9/20/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SplashViewController.h"
#import "SCNavigationBar.h"
#import "RXCustomTabBar.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate, UITabBarControllerDelegate>{
    int totalReceived;
    int totalResponse;
    int connectionCheck;
    NSString *myVersion;
    NSString *webVersion;
    
    NSURLConnection *verConn;
    NSURLConnection *XMLconnection;
    NSURLConnection *XML_Hotnew_conn;
    
    NSArray *paths;
    NSString *documentDirectory;
    NSString *filePath;
    NSString *filePath2;
    NSString *filePath3;
    
    UIAlertView *alertView;
}

@property (strong, nonatomic) UIWindow *window;

@property (strong, nonatomic) RXCustomTabBar *tabBarController;
@property (strong,nonatomic) SplashViewController *splashViewController;

@property (assign,nonatomic) NSMutableData* response;

-(void)loadResources;
-(void) loadXML;
-(void) savingData:(NSMutableData *)data;
-(void) savingHotnewData:(NSMutableData *)data;
-(void)checkVersion;
-(void)checkHotVersion;
-(void)loadHotNewXML;
@end
